<h1>Listing entries</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Body</th>
  </tr>

<% for entry in @entries %>
  <tr>
    <td><%=h entry.title %></td>
    <td><%=h entry.body %></td>
    <td><%= link_to 'Show', entry %></td>
    <td><%= link_to 'Edit', edit_entry_path(entry) %></td>
    <td><%= link_to 'Destroy', entry, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New entry', new_entry_path %>
